﻿using System;
using System.Data;
using System.Configuration; 
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.IO;



public static class EmailData
{

    static string _websitelink = "http://CampusCollab.in/";
    public static string WebsiteLink { set { _websitelink = value; } get { return _websitelink; } }

    static string _homepage = WebsiteLink + "Reg-Registration-User.aspx";
    public static string HomePage { set { _homepage = value; } get { return _homepage; } }

    static string _logostyle = "text-align:center; background:#f5f5f5; padding-top:20px; padding-bottom:20px;";
    public static string LogoStyle { set { _logostyle = value; } get { return _logostyle; } }

    static string _Tablestyle = "font-family: Tahoma, Geneva, sans-serif; color:#666;width:100%";
    public static string TableStyle { set { _Tablestyle = value; } get { return _Tablestyle; } }

    static string _copyrightstyle = "text-align:center;background:#f5f5f5; font-size:11px; padding-top:20px; padding-bottom:20px;";
    public static string copyrightstyle { set { _copyrightstyle = value; } get { return _copyrightstyle; } }

    static string _Link = WebsiteLink + "images/logo.jpg";
    public static string LogoLink { set { _Link = value; } get { return _Link; } }

    static string _registerLink = WebsiteLink + "Reg-Registration-User.aspx";
    public static string RegistrationLink { set { _registerLink = value; } get { return _registerLink; } }

    static string _csslink = WebsiteLink+"css/email.css";
    public static string csslink { set { _csslink = value; } get { return _csslink; } }

    static string _copyright = "&copy;&nbsp;2011&nbsp;CampusCollab™";
    public static string CopyRight { set { _copyright = value; } get { return _copyright; } }

    static string _website = "CampusCollab";
    public static string WebsiteAdmin { set { _website = value; } get { return _website; } }

    static string _unsubscribe = "You are receiving this email because you are a part of Campus Collab team. If you wish to unsubscribe from these emails then <a href='"+EmailData.HomePage +"'>click here</a>";
    public static string Unsubscribelink { set { _unsubscribe = value; } get { return _unsubscribe; } }

    static string _pageAdmin = string.Empty;
    public static string PageAdmin { set { _pageAdmin = value; } get { return _pageAdmin; } }


    static string _name = string.Empty;
    public static string Name { set { _name = value; } get { return _name; } }

    static string _title = string.Empty;
    public static string Title { set { _title = value; } get { return _title; } }


    static string _email = string.Empty;
    public static string Email { set { _email = value; } get { return _email; } }

    static string _uname = string.Empty;
    public static string UserName { set { _uname = value; } get { return _uname; } }

    //static string _forgotpasswordlink = string.Empty;
    //public static string ForgotPasswordLink { set { _forgotpasswordlink = value; } get { return _forgotpasswordlink; } }

    static string _from = string.Empty;
    public static string From { set { _from = value; } get { return _from; } }

     
    private static string _connectrequestby = string.Empty;
    public static string ConReq_SendBy { set { _connectrequestby = value; } get { return _connectrequestby; } }

    private static string _requestbylnk = string.Empty;
    public static string SendByLink { set { _requestbylnk = value; } get { return _requestbylnk; } }


    private static string _referencetext = string.Empty;
    public static string Linking_Text { set { _referencetext = value; } get { return _referencetext; } }

    private static string _link = string.Empty;
    public static string Link { get { return _link; } set { _link = value; } }

    private static string _requestid = string.Empty;
    public static string RequestID { set { _requestid = value; } get { return _requestid; } }
    //Page Link Request end
     
    static string _url = string.Empty;
    public static string URL { set { _url = value; } get { return _url; } }


    private static string _Message = string.Empty;
    public static string Message { set { _Message = value; } get { return _Message; } }

    public static string BestRegards()
    {
        StringWriter writer = new StringWriter();
        Page page = new Page();
        UserControl control = (UserControl)page.LoadControl("~/EmailTemplate/BestRegards.ascx");
        page.Controls.Add(control);
        HttpContext.Current.Server.Execute(page, writer, false);
        return writer.ToString();

    }
    public static string invitationslink()
    {
        return WebsiteLink + "My-Invitations";
    }


}

public static class Common
{

    static string _logoutpage = "~/Menu.aspx";
    public static string LogOutPage { set { _logoutpage = value; } get { return _logoutpage; } }


    static string _noteslogoutpage = "~/Notes/NTS-Home.aspx";
    public static string NotesLogOutPage { set { _noteslogoutpage = value; } get { return _noteslogoutpage; } }

    static string _defaultImage = "images/no-image.jpg";
    public static string DefaultImage { set { _defaultImage = value; } get { return _defaultImage; } }

    static string _nonpremiumpage = "~/Reg-Registration-User.aspx";
    public static string NonPremium { set { _nonpremiumpage = value; } get { return _nonpremiumpage; } }


    static string _invalidpage = "~/Menupage.aspx";
    public static string InvalidPage { set { _invalidpage = value; } get { return _invalidpage; } }

    static string _Loggedpage = "~/Menupage.aspx";
    public static string LoggedPage { set { _Loggedpage = value; } get { return _Loggedpage; } }

    static string _error = "~/Error.aspx";
    public static string ErrorPage { set { _error = value; } get { return _error; } }

    static string _from = string.Empty;
    public static string From { set { _from = value; } get { return _from; } }

    static string _subject = string.Empty;
    public static string Subject { set { _subject = value; } get { return _subject; } }

    static string _to = string.Empty;
    public static string To { set { _to = value; } get { return _to; } }

    static string _cc = string.Empty;
    public static string CC { set { _cc = value; } get { return _cc; } }

    static string _body = string.Empty;
    public static string Body { set { _body = value; } get { return _body; } }

    static string _attach = string.Empty;
    public static string AttachmentPath { set { _attach = value; } get { return _attach; } }
}